package inputSpeedTest;

import java.io.IOException;

public class SystemIn
{
	public static void main(String[] args) throws IOException
	{
		System.in.read();
		
		long s = System.currentTimeMillis();
		int t;
		
		for(int i=0; i<1000000; i++)
		{
			t = System.in.read();
		}
		
		long e = System.currentTimeMillis();
		
		System.out.println(e-s);
	}
}
